/*
 * @Author: your name
 * @Date: 2021-01-27 10:28:28
 * @LastEditTime: 2022-08-05 15:45:47
 * @LastEditors: Please set LastEditors
 * @Description: 截图模块中的共有状态
 * @FilePath: \assist\src\store\modules\canvas\canvas.module.js
 */

export default {
  namespaced: true,
  state: () => ({
    modelKey: '', // 画图选择的工具
    isShowFlag: true,
    isShowShape: true, // 只有选择形状时  才出现 各种形状选择
  }),
  getters: {
    getModelKey (state) {
      return state.modelKey
    },
    getIsShowShape (state) {
      return state.isShowShape
    },
    isShowFlag (state) {
      return state.isShowFlag
    }
  },
  mutations: {
    setModelKey (state, str) {
      state.modelKey = str
    },
    setIsShowShape (state, boo) {
      state.isShowShape = boo
    },
    isShowFlag (state, boo) {
      state.isShowFlag =boo
    }
  },
  actions: {

  }
}